<?php
/**
* Admin for CMS settings
*
* @author Mario Schillermann <info@rockit-flash.com>
* @encoding UTF-8 äöüßÖÄÜ
* @copyright © 2011 Mario Schillermann (info@rockit-flash.com)
* @license GNU GPL v2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
* @package Page
* @subpackage Index
* @link $HeadURL$
* @version SVN: $Id$
* @phpVersion >=5
* @todo
*/

class Rockitbos_Form_Login extends Zend_Form {
    /**
     * Index
     *
     * @return void
     */
    public function build()
    {
        $this->addElement(new Zend_Form_Element_Text(
            'username', array('label' => 'Benutzername')));
        $this->addElement(new Zend_Form_Element_Password(
            'password', array('label' => 'Passwort')));
        $this->addElement(new Zend_Form_Element_Submit('login', 'anmelden'));

        $this->username->addValidator('regex', false, array('/^[a-z0-9]/i'));

        $this->addDisplayGroup(
            array(
                'username',
                'password',
                'login'
            ),
            'groups',
            array("legend" => ""));

        return $this;

    }

}